import { useLoading } from '@/context/Loading'
import { Button, Layout } from 'antd'
import { useEffect } from 'react'
export default function LoadingPage() {
	const { loading, showLoading, hideLoading } = useLoading()
	const setLoading = () => {
		showLoading()
		setTimeout(() => {
			hideLoading()
		}, 1000)
	}
	return (
		<Layout>
			<Layout.Header>
				<Button onClick={setLoading}>点击加载</Button>
			</Layout.Header>
			<Layout.Content>
				<div>LoadingPage</div>
			</Layout.Content>
		</Layout>
	)
}
